Pod::Spec.new do |s|

  s.name         = 'SwiftyJSON'
  s.version      = '2.4.0'
  s.summary      = 'SwiftyJSON.'

  s.description  = <<-DESC
                    this is SwiftyJSON
                   DESC

  s.homepage     = 'https://gitee.com/wenliaokeji/SwiftyJSON'

  s.license      = { :type => 'MIT', :file => 'FILE_LICENSE' }

  s.author       = 'tao'

  s.platform     = :ios, '8.0'

  #  When using multiple platforms
  # s.ios.deployment_target = '5.0'
  # s.osx.deployment_target = '10.7'
  # s.watchos.deployment_target = '2.0'
  # s.tvos.deployment_target = '9.0'

  s.source       = { :git => 'git@gitee.com:wenliaokeji/SwiftyJSON.git', :tag => s.version.to_s }


  s.default_subspec = "Framework"
  s.subspec 'Framework' do |framework|
      framework.vendored_frameworks = 'SwiftyJSON/Frameworks/' + s.version.to_s + '/*.framework' 
      # 私有库将优先使用framework形式的，如果没有会更新失败的， 可将其切换为 source 模式的 
      # s.dependency 'AFNetworking'
  end
  
  s.subspec 'Source' do |source|
      source.source_files = 'SwiftyJSON/Classes/**/*'
      #- 推荐这种 -#
    #   source.resource_bundles = {
    #       'SwiftyJSON' => ['SwiftyJSON/Assets/**/*']
    #   }
  end

  # s.source_files = 'SwiftyJSON/Classes/**/*'

  #- 推荐这种 -#
  # s.resource_bundles = {
  #   'SwiftyJSON' => ['SwiftyJSON/Assets/**/*']
  # }

  # s.resources  = 'SwiftyJSON/**/*.{storyboard,xib}', 'SwiftyJSON/Assets/*'
  # s.resources = 'Resources/*.png'

  # s.preserve_paths = 'FilesToSave', 'MoreFilesToSave'

  # s.framework  = 'SomeFramework'
  # s.frameworks = 'SomeFramework', 'AnotherFramework'

  # s.library   = 'iconv'
  # s.libraries = 'iconv', 'xml2'

  # s.xcconfig = { 'HEADER_SEARCH_PATHS' => '$(SDKROOT)/usr/include/libxml2' }
  # s.dependency 'AFNetworking'

end
